package com.xxl.job.admin.Tool;

import com.alibaba.druid.filter.config.ConfigTools;

public class EncryptPassword {
    public static void main(String[] args) throws Exception {
        String privateKey = "MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAjVmMv4ASPq33DDbUk9SyffDu++2dhHCayAXCEKu6Z4zngZ7OMgi/p8f7oMiSaIqvYmwByJgAwx0Z9zGSkHuryQIDAQABAkAXjr2s6uDfjmnWoMrECpZm9AE4fo0alhPN01vZIG3UNQGvpjYAjMhPDuxmznP8XdkUbQdG90O69lElDAlyQQzrAiEAw7Cag/Rn2YOA9S/9kmVWnfIy2XH3OA6FDzDibTdXNwMCIQC46aoA+sbuI0OgqwQZe2KI8QwC8YQjapZ4II1ooajCQwIgD4MRTIJ0NPbKoyTxucgUrKKFS11QVn44J/MdD8FCRZcCID17vEItID4ITbE7i9ZpNz8vXv4Pjg80nql8sWgr8G//AiBBJYZo4P5QINbP8Qt3Rlla/aPaC2FfEdVlmVmU+X+hZQ==";
        String plainPassword = "mysql"; // 替换为你的明文密码

        // 加密密码
        String encryptedPassword = ConfigTools.encrypt(privateKey, plainPassword);
        System.out.println("Encrypted Password: " + encryptedPassword);
    }
}
